/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package exceptions.lexic;

/**
 *
 * @author Administrador
 */
public class NotADigitException extends LexicException{
    private String id;
	private int linea;
    private int columna;

	public NotADigitException(String i,int l, int c){
		id=i;
		linea=l;
	    columna = c - (i.length()-1);
	}
	public String getMessage(){
		return ("NotADigitException: no permite comenzar el nombre de un identificador con un digito: "+id+" - Linea "+linea+", Columna: "+columna);
	}
}
